﻿using IM.Easy.Core.Audit;
using IM.Easy.Entity.System;
using SqlSugar;

namespace IM.Easy.SystemServices.Dtos.Department
{
    public class DepartmentResponseDto : SysDepartment
    {
        /// <summary>
        /// 创建人
        /// </summary>
        public new string Creator { get => base.Creator?.NickName!; }

        /// <summary>
        /// 更新人
        /// </summary>
        public new string Updater { get => base.Updater?.NickName!; }

        /// <summary>
        /// 叶子节点
        /// </summary>
        public new List<DepartmentResponseDto> Children { get; set; }

        /// <summary>
        /// 父级节点
        /// </summary>
        public new DepartmentResponseDto Parent { get; set; }

    }
}
